package com.team.abs.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.team.abs.dao.black_white_dao;
import com.team.abs.entity.black_man;
import com.team.abs.entity.white_kind;
@Service
public class black_white_service implements black_white_dao{
	@Autowired
	private black_white_dao  black_white_dao;
	@Override
	public int delete_white_kind(String item_kind) {
		return this.black_white_dao.delete_white_kind(item_kind);
	}

	@Override
	public int insert_black_man(black_man black_man) {
		return this.black_white_dao.insert_black_man(black_man);
	}

	@Override
	public int search_black_man(String user_uid,int unpower_limit) {
		return this.black_white_dao.search_black_man(user_uid,unpower_limit);
	}

	@Override
	public int search_white_kind(String item_kind) {
		return this.black_white_dao.search_white_kind(item_kind);
	}

	@Override
	public int delete_balck_man(String user_uid) {
		return this.black_white_dao.delete_balck_man(user_uid);
	}

	@Override
	public int insert_white_kind(String item_kind) {
		return this.black_white_dao.insert_white_kind(item_kind);
	}

	@Override
	public List<black_man> search_all_black_man() {
		return this.black_white_dao.search_all_black_man();
	}

	@Override
	public List<white_kind> search_all_white_kind() {
		return this.black_white_dao.search_all_white_kind();
	}

}
